package com.hc.mapper;

import com.hc.bean.CategoryBean;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper {


    List<CategoryBean> queryData(CategoryBean categoryBean);

    List<CategoryBean> queryDataByParentId(Integer category_id);


    List<CategoryBean> queryDataByTree(Integer category_id);

    public  int insertData(CategoryBean categoryBean);


    public  int deleteDataById(Integer category_id);

    public  int updateData(CategoryBean categoryBean);
}
